<template>
	<view>
		<view class="imgflex flex_jc_cent">
			<image src="/static/lf.png" mode=""></image>
			<text>稻穗值共守公约</text>
			<image src="/static/rf.png" mode=""></image>
		</view>
		<view class="subtit">
			<view class="">稻穗值是你信用与贡献的见证，</view>
			<view class="">鼓励每一次用心参与，也提醒每次失约的影响。</view>
		</view>

		<view class="texts">
			<view class="title">一、基本规则</view>
			<view class="ts">
				1. 注册会员即得{{ configData.userInitPoints }}分初始值，续费时高于{{ configData.userInitPoints }}分予以保留，低于则重置为{{ configData.userInitPoints }}分
			</view>
			<view class="ts">2. 超过{{ configData.mallNotUseUserPoints }}分，超过部分可兑换文创，请于12月31日前完成兑换，新年1月1日所有稻友重置为60分</view>
			<view class="ts">3. ≥{{ configData.activitySignUpPoints }}分可报名活动；≥{{ configData.activitySendPoints }}分可发起活动</view>
			<view class="ts">
				4. 线下签到类活动须在活动开始前{{ configData.activitySignInMinuteBefore }}分钟至开始后{{ configData.activitySignInMinuteAfter }}分钟内签到，在活动地点{{
					configData.activitySignInDistance / 1000
				}}公里范围即可签到；活动开始前签到可加分， 迟到{{ configData.activitySignInMinuteBefore }}分钟内不奖不扣，超时无法补签
			</view>
			<view class="ts">5. 线上及非签到类活动无签到与积分</view>
			<view class="ddd"></view>
			<view class="title">三、如何赚取稻穗值</view>
			<view class="ts">①参加线下公益活动并准时签到：+{{ configData.activitySignInPointsGood }}分</view>
			<view class="ts">②参加其他线下活动并准时签到：+{{ configData.activitySignInPoints }}分</view>
			<view class="ts">③成功担任活动主持人：+{{ configData.activityEmceePoints }}分</view>
			<view class="ts">④普通会员每邀请一位新会员注册：+{{ configData.userInvitePoints }}分</view>
			<view class="ddd"></view>

			<view class="title">三、扣分情况</view>

			<view class="ts">①取消报名：</view>
			<view class="ts">提前≥72小时取消：不扣</view>
			<view class="ts">提前48-72小时：-4分</view>
			<view class="ts">提前24-48小时：-6分</view>
			<view class="ts">提前4-24小时：-8分</view>
			<view class="ts">不足4小时：-10分</view>
			<view class="ts">未取消且未到场，或迟到超30分钟：-{{ configData.activityNotSignInPointsSub }}分</view>
			<view class="ts">②活动因报名≤{{ configData.activitySignUpCheckUserCount }}人取消：不扣分</view>
			<view class="ddd"></view>
			<view class="title">四、严重违规处理</view>
			<view class="ts">法律法规或违背公序良俗的内容(如暴力、血腥、色情等不健康信息)，一经核实，账号将被永久禁用，且已付会费不予退还</view>
		</view>

		<view class="btn flex_jc_sb" @click="$pageGo('/mypage/rice/attachment')">
			<view class="flex">
				<image src="/static/r5.png" mode=""></image>
				<view class="">详细理念与说明请阅附件</view>
			</view>
			<uni-icons type="right"></uni-icons>
		</view>
		<view class="" style="height: 60rpx"></view>
	</view>
</template>

<script setup>
import { ref, reactive } from 'vue';
import { onLoad, onShow, onReachBottom } from '@dcloudio/uni-app';
import { getConfig } from '@/api/login.js';
const configData = reactive({});
onLoad(() => {
	getConfig({}).then((res) => {
		if (res.code == 200) {
			Object.assign(configData, res.data);
		}
	});
});
</script>

<style lang="scss">
page {
	background: #f7f8f6;
}
.imgflex {
	margin: 40rpx auto;
	image {
		width: 60rpx;
		height: 60rpx;
	}
	text {
		font-family: PingFang SC, PingFang SC;
		font-weight: bold;
		font-size: 40rpx;
		color: #75613e;
		margin: 0 30rpx;
	}
}
.subtit {
	width: 680rpx;
	height: 80rpx;
	font-family: PingFang SC, PingFang SC;
	font-weight: 500;
	font-size: 28rpx;
	color: #75613e;
	text-align: center;
	margin: 0rpx auto;
}
.texts {
	width: 710rpx;
	background: #ffffff;
	border-radius: 20rpx 20rpx 20rpx 20rpx;
	margin: 20rpx auto;
	padding: 32rpx 30rpx;
	box-sizing: border-box;
	.title {
		font-family: PingFang SC, PingFang SC;
		font-weight: bold;
		font-size: 30rpx;
		color: #75613e;
		margin-bottom: 20rpx;
	}
	.ts {
		font-family: PingFang SC, PingFang SC;
		font-weight: 500;
		font-size: 28rpx;
		color: #8f8f8b;
		line-height: 60rpx;
	}
	.ddd {
		width: 650rpx;
		border-bottom: 1px dashed #75613e;
		margin: 40rpx auto;
		opacity: 0.3;
	}
}
.btn {
	width: 710rpx;
	height: 100rpx;
	background: #eee8d8;
	border-radius: 0rpx 0rpx 0rpx 0rpx;
	margin: 30rpx auto;
	padding: 0rpx 40rpx 0rpx 14rpx;
	box-sizing: border-box;
	image {
		width: 88rpx;
		height: 88rpx;
		margin-right: 20rpx;
	}
	font-family: PingFang SC, PingFang SC;
	font-weight: 500;
	font-size: 28rpx;
	color: #75613e;
}
</style>
